<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title>问卷调查</title>
<link rel="stylesheet" href="__PUBLIC__/style.css" />
<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/plugins/iframeTools.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/ajax.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/inputpost.js" type="text/javascript"></script>
<script type="text/javascript">
//Get提交
$(function(){$(".delete").click(function(){
    var uid = $(this).attr('uid');
    var __this = this;
    art.dialog.confirm('你确定执行本次操作？',function(){
        ajax.get(//开始AJAX处理
            uid+"?action=del",
            function (obj){
                var str = obj.responseText;
                if(str != 1){
                    art.dialog.alert(str);
                    return;
                }
                $(__this).parents('.box').remove();
                $(__this).parent().remove();
            }
        ) 
    });  
})})
</script>
</head>
<body>
<div id="main">
    <div class="nav">
        <input style="border: none" class="button01-out" type="button" onclick="javascript:history.back()" value="返回" />
        <input style="border: none" class="button01-out" onclick="look('__URL__/askedit-{$title['id']}.html','添加',500,250)" type="button" value="添加" />
    </div>
<div style="border:1px solid #BEBEBE;">
    <div style="border:1px solid #fff; padding:10px; background:#EEEEEE;">
	<div style="border-bottom:1px #BEBEBE solid; font-size:20px;line-height:30px; height:30px; font-weight:bold">{$title['title']}</div>
	<div style="height:10px; line-height:10px; border-top:1px solid #fff"></div>
        {loop $info $vo}
        <div class="box">
        <h4 style="font-size: 14px;height:25px;"><a href="###" onclick="look('__URL__/askedit-{$vo['classid']}-{$vo['id']}.html','编辑',500,330)" title="编辑"><img src="__PUBLIC__/images/icon_edit.gif" /></a>
            <span class="pt delete" uid="__URL__/asklist-{$vo['id']}.html" title="删除"><img src="__PUBLIC__/images/icon_del.gif" /></span> {$vo['name']}</h4>
	<div style="border:1px solid #BEBEBE; border-left:6px solid #BEBEBE; padding:10px; background:#F7FBFC">{loop $vate $value}
            {if $vo['id'] == $value['askid']}
                {if $vo['radio'] == 1}
                    <a href="__URL__/delvate-{$value['id']}-{$vo['classid']}.html"><img src="__PUBLIC__/images/icon_no.png" /></a><input type="radio" name="voteid[]" /> {$value['name']}<br />
                {else}
                    <a href="__URL__/delvate-{$value['id']}-{$vo['classid']}.html"><img src="__PUBLIC__/images/icon_no.png" /></a><input type="checkbox" name="voteid[]" /> {$value['name']}<br />
                {/if}
            {/if} {/loop}</div>
        <div style="height:10px; line-height:10px; border-top:1px solid #fff"></div>
        </div>
        {/loop}
    </div>
</div>
</div> 
</body>
</html>